{include file="start" /}
{include file="header" /}
<title>重卡汇</title>
<link rel="stylesheet" href="//at.alicdn.com/t/font_hga6y0mggtrcnmi.css">
<link rel="stylesheet" href="/_hongyanche/css/app.css">
<link rel="stylesheet" href="/css/swiper.min.css">
<style type="text/css">
	.i{font-size: inherit;}
</style>
<div id="container"></div>
<script type="text/html" id="tpl-home">
	<div class='page page-tab'><div class='bc-view' data-port='/home/home'></div></div>
</script>
<script type="text/html" id="tpl-mall">
	<div class='page page-tab'><div class='bc-view' data-port='/home/mall'></div></div>
</script>
<script type="text/html" id="tpl-mall_info">
	<div class='page page-remove'><div class='bc-view' data-port='/home/mall_info'></div></div>
</script>
<script type="text/html" id="tpl-mall_cart">
	<div class='page page-remove'><div class='bc-view' data-port='/home/mall_cart'></div></div>
</script>
<script type="text/html" id="tpl-mall_cart_pay">
	<div class='page page-remove'><div class='bc-view' data-port='/home/mall_cart_pay'></div></div>
</script>

<script type="text/html" id="tpl-maintain">
	<div class='page page-tab'><div class='bc-view' data-port='/home/maintain'></div></div>
</script>

<script type="text/html" id="tpl-order">
	<div class='page page-tab'><div class='bc-view' data-port='/home/order'></div></div>
</script>

<script type="text/html" id="tpl-my">
	<div class='page page-tab'><div class='bc-view' data-port='/home/my'></div></div>
</script>
<script type="text/html" id="tpl-password">
	<div class='page page-remove'><div class='bc-view' data-port='/home/password'></div></div>
</script>
<script type="text/html" id="tpl-password_reset">
	<div class='page page-remove'><div class='bc-view' data-port='/home/password_reset'></div></div>
</script>

<script type="text/html" id="tpl-login">
	<div class='page page-remove'><div class='bc-view' data-port='/home/login'></div></div>
</script>
<script type="text/html" id="tpl-bind_wechat">
	<div class='page page-remove'><div class='bc-view' data-port='/home/bind_wechat'></div></div>
</script>
<script type="text/html" id="tpl-bind_tel">
	<div class='page page-remove'><div class='bc-view' data-port='/home/bind_tel'></div></div>
</script>
<script type="text/html" id="tpl-bind_email">
	<div class='page page-remove'><div class='bc-view' data-port='/home/bind_email'></div></div>
</script>
<script type="text/html" id="forum_index">
	<div class='page page-tab'><div class='bc-view' data-port='/home/forum'></div></div>
</script>


<script type="text/javascript">
	$(document).on('login-success', function(event) {
		INFO.cache.user = null;
		$("[cache='user']").each(function(index,el){
			INFO.reload(el);
		});
		if(GET('redirect')){
			location.href=GET('redirect');
		}else{
			location.href='#my';
		}
		// if(GET('redirect')){
		// 	location.href=GET('redirect');
		// }else if(PAGE.stack.length>1){
		// 	history.back(-1);
		// }else{
		// 	location.href='#';
		// }
	});
	$(document).on('bc-logout-success', function(event) {
		INFO.cache.user = null;
		$("[cache='user']").each(function(index,el){
			INFO.reload(el);
		})
		location.href='#login'
		RANK.reload('#admin-menu');
	});
	$(document).on('bc-wechat-ready',  function(event) {
		WEIXIN.share({title:"重卡汇",imgUrl:'http://api.hongyanche.com/_hongyanche/material/logo.jpg',desc:'上汽依维柯红岩官方销售平台'})
	});
</script>
{include file="home:index-tab" /}
{include file="footer" /}
{include file="end" /}
<script src='/_hongyanche/js/app.js'></script>
<script src='/js/bc-pay.js'></script>
<script src='/js/swiper.jquery.min.js'></script>